package com.jayanslow.lighting.protocol.misc;

public class Debug {
	public static String toString(short[] ss) {
		String s = "", hex;
		if (ss == null) return s;
		for (int i = 0; i < ss.length; i++) {
			hex = Integer.toHexString(ss[i]).toUpperCase();
			if (hex.length() == 1) hex = "0" + hex;
			s += "0x" + hex + " ";
		}
		return s;
	}
	public static void println(short[] ss) {
		System.out.println(Debug.toString(ss));
	}
}
